package model

import (
	"gorm.io/gorm"
	"video-mgr/video-server/basic/config"
)

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30);comment:用户名"`
	Password string `gorm:"type:char(32);comment:密码"`
}

func CreateUser(u *User) error {

	return config.DB.Create(&u).Error
}
